<?php
include_once "index.php";//调用index页面
$db=new DBO ('1705phpa','root','root');//添加数据
$res=$db->del('new',['n_id'=>5]);//删除ID
if($res)
{
    echo ("<script>alert('删除成功');location.href='./show.php'</script>");//成功跳转
}
else
{
    echo ("<script>alert('删除失败');location.href='./show.php'</script>");//失败跳转
}
?>